Skip to content

Allow prerelease promotion to stable#1218

Draft
janechu wants to merge 1 commit intomicrosoft:mainfrom
janechu:users/janechu/allow-beachball-prerelease-to-stable
Draft

Allow prerelease promotion to stable#1218
janechu wants to merge 1 commit intomicrosoft:mainfrom
janechu:users/janechu/allow-beachball-prerelease-to-stable

Conversation

@janechu
Copy link
Copy Markdown

@janechu janechu commented Apr 26, 2026

Summary

  • Allow stable change types on prerelease packages to promote to stable even when prereleasePrefix is configured.
  • Add prepatch, preminor, and premajor to the interactive beachball change prompt.
  • Update prerelease change-type documentation and the Beachball change-file skill guidance.

Validation

  • yarn format
  • yarn format:check
  • cd packages/beachball && yarn test src/__tests__/bump/bumpPackageInfoVersion.test.ts src/__tests__/changefile/getQuestionsForPackage.test.ts src/__tests__/changefile/promptForChange.test.ts src/__tests__/changefile/promptForChange_promptForPackageChange.test.ts --runInBand
  • yarn checkchange
  • cd docs && yarn install --immutable && yarn docs:build ✅ (peer warnings only)
  • yarn build ❌ pre-existing unrelated failure: src/monorepo/filterIgnoredFiles.ts(4,25): error TS2503: Cannot find namespace 'minimatch'.
  • yarn test ❌ blocked by the same beachball#build failure.
  • yarn lintlint:deps, lint:versions, and lint:marketplace passed; lint:code blocked by the same beachball#build failure.
  • cd packages/beachball && yarn lint ❌ pre-existing unrelated warning in src/monorepo/filterIgnoredFiles.ts: unsafe minimatch.IOptions argument.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Member

@ecraig12345 ecraig12345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR--this is a change I'd like to make in some form, but it needs a lot more thought and would probably be part of an all-up rework of prerelease handling. See #1223 for links to some of the related issues.

One specific issue is that we shouldn't include the extra pre* change types by default--it would be confusing and unwanted for the overwhelming majority of beachball users, at least outside a major version bump. See #947 for more thoughts on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants